package br.inf.ufrgs.usixml4desktopl.rendering.javadesktop;

import br.inf.ufrgs.usixml4desktop.rendering.UsiXMLElementRenderer;
import br.inf.ufrgs.usixml4desktop.rendering.UsiXMLLayoutManagerRenderer;
import br.inf.ufrgs.usixml4desktop.rendering.javadesktop.components.UsiXMLJavaDesktopGridBagBoxRenderer;
import br.inf.ufrgs.usixml4desktop.rendering.javadesktop.components.UsiXMLJavaDesktopWindowRenderer;

public class RendererFactory {
	
	private static RendererFactory _instance;
	
	public static RendererFactory getInstance(){
        if (_instance == null) {
            _instance = new RendererFactory();
        }
        
        return _instance;
    }
	
	public UsiXMLElementRenderer getFirstElementRenderer(
			UsiXMLJavaDesktopInterfaceRenderer usiXMLInterfaceRenderer){
		return new UsiXMLJavaDesktopWindowRenderer(usiXMLInterfaceRenderer);
	}
	
	public UsiXMLLayoutManagerRenderer getFirstLayoutManagerRenderer(
			UsiXMLJavaDesktopInterfaceRenderer usiXMLInterfaceRenderer){
		return new UsiXMLJavaDesktopGridBagBoxRenderer(usiXMLInterfaceRenderer);
	}

}
